<%@ page import="com.okaysoft.ofb.Task" %>
<g:hiddenField name="id"/>
<g:hiddenField name="device.id"  />
<g:hiddenField name="terminal"  />
%{--<div class="fieldcontain devicefields">
	<label for="device">
		<g:message code="task.device.label" default="光交设备名称" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="device" name="device.id" from="${com.okaysoft.ofb.Device.list()}" optionKey="id" optionValue="name" class="many-to-one"/>
</div>

<div class="fieldcontain devicefields">
	<label for="user">
		<g:message code="task.user.label" default="指派人" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${com.okaysoft.ofb.account.User.list()}" optionKey="id" optionValue="name" class="many-to-one"/>
</div>--}%

<div class="fieldcontain devicefields">
    <label for="assignDate">
        <g:message code="task.assignDate.label" default="指派时间" />
        <span class="required-indicator">*</span>
    </label>
    <g:textField name="assignDate" value="${new Date().format('yyyy-MM-dd')}" />
</div>

<div class="fieldcontain devicefields">
    <label for="task_status">
        <g:message code="task.status.label" default="任务类型" />
        <span class="required-indicator">*</span>
    </label>
    <g:select name="task_status" from="${Task.Type.values()}" optionValue="label" value="${Task.Type.JUMPING}" required="true" class="easyui-validatebox"></g:select>
</div>
<div style="clear:both"></div>
<div id="task_deta" style="padding:2px;">
    <div id="task_deta_layout" class="easyui-layout" style="height:260px;">
        <div region="west" style="width:100px;border-right-width: 0;">
            <ul id="task_details_tree" class="easyui-tree" animate="true">

            </ul>
        </div>
        <div region="center">
            <div id="task_details_content" style="height: 230px;padding:5px;"></div>
        </div>
        <div region="east" style="width:150px;border-left-width: 0;">
            <div id="task_dtails_right"></div>
        </div>
    </div>
    <g:textArea name="task_description" rows="15" cols="85" style="display: none"></g:textArea>
</div>


